package com.gluck.cases.app.biz.impl.impl;

import com.gluck.cases.app.biz.impl.RoleService;
import com.gluck.cases.core.block.RoleBlock;
import com.gluck.cases.core.modal.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Desc RoleServiceImpl
 * @Author I am Gluck
 * @Date 2022/5/17 - 8:06 下午
 **/
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleBlock roleBlock;

    @Override
    public List<Role> findAdminRoleByUsername(String username) {
        List<Role> roles = roleBlock.findAdminRoleByUsername(username);
        return roles;
    }
}
